<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="fragment/Headfragment::Headfragment"></head>
<body>
<!-- navbar-->
<header th:replace="fragment/PageHeadfragment::PageHeadfragment"></header>
<div class="d-flex align-items-stretch">
    <div th:replace="fragment/Navigationfragment::Navigationfragment"></div>

    <section class="container-fluid px-xl-5">
        <div>
            <div class="card-body">
                <table  class="table table-striped card-text">
                    <p>
                    <h3>
                        <a th:text="${session.edittablename}"></a>
                    </h3>
                    </p>
                    <thead >
                    <tr >
                        <!--<th>#</th>-->
                        <th th:each="etc:${session.edittablecolumn}" >
                            <a th:text="${etc}"></a>
                        </th>
                    </tr>
                    </thead>
                    <tbody>

                    <tr th:each="tvl:${session.tablevaluelist}" >
                        <!--<th scope="row">1</th>-->
                        <form action="/usercreatetable/updatevalue" method="post">
                        <td th:each="tvs:${tvl}" >
                            <input name="arr" class="mr-3 form-control" th:value="${tvs}">
                        </td>
                        <td>
                            <button class="btn btn-secondary">
                                <a th:href="@{/usercreatetable/deletevalue/(list=${tvl})}" style="color: mintcream">移除</a>
                            </button>

                            <button type="submit" class="btn btn-secondary"> 修改
<!--                                <a th:href="@{/usercreatetable/updatevalue}">修改</a>-->
                            </button>

                        </td>
                        </form>
                    </tr>

                    </tbody>
                </table>
                <form th:replace="fragment/Addvaluefragment::Addvaluefragment"></form>
            </div>
        </div>
    </section>
</div>

<!-- JavaScript files-->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/popper.js/umd/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="vendor/chart.js/Chart.min.js"></script>
<script src="js/js.cookie.min.js"></script>
<script src="js/charts-custom.js"></script>
<script src="js/front.js"></script>
</body>
</html>